package com.showgood.view.mediator {
	import com.showgood.config.PopupConfig;
	import com.showgood.core.AbstractMediator;
	import com.showgood.core.NotificationDispatcher;
	import com.showgood.core.NotificationEvent;
	import com.showgood.config.SangoConst;
	import com.showgood.model.CityProxy;
	import com.showgood.model.PopupStackProxy;
	import com.showgood.model.SocketProxy;
	import com.showgood.vo.BaseVO;
	import com.showgood.vo.CityVO;
	import com.showgood.vo.IdVO;
	import com.showgood.vo.RemoteMessage;
	import com.showgood.vo.BaseVO;
	import org.puremvc.as3.interfaces.INotification;
	import com.showgood.view.ChuZhengDialog;
	
	/**
	 * 城市上面的几个用户命令
	 * @author BianPeng
	 */
	public class CityDialogMediator extends AbstractMediator {
		
		public function CityDialogMediator(viewComponent:Object = null) {
			super(viewComponent);
		}
		// 注册事件
		override protected function setupNotifactionHandler(dispatcher:NotificationDispatcher):void {
			super.setupNotifactionHandler(dispatcher);
			dispatcher.addHandler(SangoConst.USER_COMMAND_CHUZHENG, onChuZheng);
			dispatcher.addHandler(SangoConst.USER_COMMAND_BUSHU, onBuShu);
			dispatcher.addHandler(SangoConst.USER_COMMAND_JICE, onJiCe);
		}
		private function onChuZheng(event:NotificationEvent):void {
			var _city:CityVO = event.data as CityVO;
			var _cityProxy:CityProxy = sangoFacade.retrieveProxyByType(CityProxy) as CityProxy;
			_cityProxy.getManList(RemoteMessage.REMOTE_QUERY_CHUZHENG_MAN_LIST, _city);
		}
		private function onBuShu(event:NotificationEvent):void {
			_logger.info(event.data);
		}
		private function onJiCe(event:NotificationEvent):void {
			_logger.info(event.data);
		}
	}

}

